<%-- 
    Document   : listaProcedimento
    Created on : May 23, 2012, 8:01:49 PM
    Author     : cleber
--%>

<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>    
    <style type="text/css">
            @import url("estilo_adm.css");
    </style>  
    <link rel="stylesheet" href="menu/menu.css" type="text/css" media="all" charset="utf-8" />
    <link rel="stylesheet" href="menu/Menu2.css" type="text/css" media="screen" charset="utf-8" />
    <!--[if lt IE 7]>
            <link rel="stylesheet" href="menu/Menu3.css" type="text/css" media="screen" charset="utf-8" />
    <![endif]-->     
    <script language="javascript">
        function confirmaExclusao(aURL) {
            if(confirm('Você tem certeza que deseja excluir?')) {
                    location.href = aURL;
            }
        }
        function confirmaAlteracao(aURL) {
            if(confirm('Você tem certeza que deseja alterar?')) {
                    location.href = aURL;
            }
        }        
    </script>    
</head>
<body>
    
<!--MENU -->
	<div id="top_acima_banner_adm">
		<ul id="nav" name="nav">						
			<li><a href="#"><span class="style_menu_dinamico_adm"><strong>[+] MENU</strong></span></a>
				<ul>
					<li><a href="adm.jsp"><span class="style_menu_dinamico_adm">Home</span></a></li>
					<li><a href="#"><span class="style_menu_dinamico_adm">Cadastros</span></a>
						<ul>
                                                    <li><a href="cad_paciente.jsp"><span class="style_menu_dinamico_adm">Paciente</span></a></li>
                                                    <li><a href="controller?action=AgendarAtendimento"><span class="style_menu_dinamico_adm">Atendimento</span></a></li>
                                                    <li><a href="cad_procedimento.jsp"><span class="style_menu_dinamico_adm">Procedimento</span></a></li>
						</ul>
						</li>									
					<li><a href="#"><span class="style_menu_dinamico_adm">Consultas</span></a>
						<ul>
                                                    <li><a href="controller?action=ListarPaciente"><span class="style_menu_dinamico_adm">Paciente</span></a></li>
                                                    <li><a href="controller?action=ListaAgendarAtendimento"><span class="style_menu_dinamico_adm">Atendimento</span></a></li>
                                                    <li><a href="controller?action=ListaProcedimento"><span class="style_menu_dinamico_adm">Procedimento</span></a></li>
                                                    <li><a href="controller?action=ListaFaturamentoMes"><span class="style_menu_dinamico_adm">Faturamento</span></a></li>
						</ul>
						</li>
					<li><a href="#"><span class="style_menu_dinamico_adm">Extra</span></a>
						<ul>
							<li><a href="opa.php"><span class="style_menu_dinamico_adm">Altera Senha</span></a></li>
						</ul>
						</li>																		
					<li><a href="LogoutSistemaAction"><span class="style_menu_dinamico_adm">Logout</span></a></li>																	
				</ul>
			</li>

		</ul>		
		<table border="0" width="1020">
			<tr>
				<td width="88%">&nbsp;</td>
				<td width="6%"><a href="adm.jsp" title="Ir para a Página Principal"><img src="img_est/home48x48.png" width="48" height="48" border="0" /></a></td>
				<td width="6%"><a href="LogoutSistemaAction" title="Sair do Sistema"><img src="img_est/cancela48x48.png" width="48" height="48" border="0" /></a></td></tr>							
		</table>		
	</div>
<!--MENU -->

<div id="tudo">    
        <div id="top_adm_voltar"><a href='javascript:history.back()'>VOLTAR</a></div>
        <!--<div id="top_adm_login">Logado como: ${sessionScope.usuario.login} </div> -->
        
        <div id="top_adm"><br /></div>
        <div id="logo_adm">
            <div align="center"><img src="img_est/logo_cliente.jpg" width="200" height="140" border="0" /></div>
        </div>
        <!-- -->
        
	<div id="central_form_adm">
		<span class="style1">
		<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
		  <tr>
			<td colspan="3" bgcolor="#F7FAF5"><div align="center">
			  <div>
                              
                              
                                <table width="983" border="0" bgcolor="#FFFFFF">
                                    <tr>
                                        <td colspan="5"><div align="left"><img src="img_est/consultas.png" width="176" height="32" /></div></td>
                                    </tr>
                                    
                                    <tr>
                                            <td colspan="4">&nbsp;</td>
                                    </tr>                                    
                                    <tr>
                                        <td colspan="5" bgcolor="#5F749D"><div align="left"><span class="style_titulo_menu"> LISTA DE PROCEDIMENTOS </span></div></td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td colspan="5" bgcolor="#F7FAF5">${requestScope.msg}</td>
                                    </tr>
                                    
                                    <tr bgcolor="#C0C0C0">
                                        <td width="70%" align="center"><span class="style_adm_grid_titulo"><b>Procedimento </b></span></td>
                                        <td width="20%" align="center"><span class="style_adm_grid_titulo"><b>Valor Cobrado</b></span></td>
                                        <td width="5%" align="center"><span class="style_adm_grid_titulo"><b>Alterar</b></span></td>
                                        <td width="5%" align="center"><span class="style_adm_grid_titulo"><b>Excluir</b></span></td>
                                    </tr>

                                    <c:forEach items="${requestScope.ListaProcedimento}" var="d" varStatus="loopStatus">
                                    <tr >
                                        <td align="center"> ${d.descricao} </td>
                                        <td align="right">${d.valor}</td>
                                        <td align="center"><a href="javascript:confirmaAlteracao('controller?action=AlterarProcedimento&idProcedimento=${d.idProcedimento}')" title="Clique Para Alterar"><img src="img_est/icone_altera.png" border="0" alt="Alterar" /></a></td>
                                        <td align="center"><a href="javascript:confirmaExclusao('controller?action=ApagaProcedimento&idProcedimento=${d.idProcedimento}')" title="Clique Para Deletar"><img src="img_est/deletar.png" border="0" alt="Apagar" /></a></td>
                                    </tr>
                                    </c:forEach> 
                                                                     
                                    <tr>
                                        <td colspan="5">
                                            <div align="center">
                                                &nbsp;
                                            </div>
                                        </td>    
                                    </tr>                                     
                                    <tr>
                                            <td colspan="5">
                                                <div align="center">
                                                    <a href='cad_procedimento.jsp'>CADASTRAR NOVO PROCEDIMENTO</a>
                                                    &nbsp;
                                                    &nbsp;
                                                    &nbsp;
                                                </div>
                                            </td>    
                                    </tr>                                    
                                </table>
                                         
                                         
			  </div>
			</div></td>
		  </tr>
		</table>
		</span>
	</div>
</div>       
</body>
</html>                                         

